import numpy as np
import matplotlib.pyplot as plt
import toolpack as tp
import cv2


img = cv2.imread('./img/flower.jpg')

cv2.imshow('srcImage',tp.zoom(img,0.2))
res=tp.zoom(img,0.1)
cv2.imshow('zoomImage',res)


G=np.float32([[1,0,4],[0,1,5]]) #平移矩阵  np.float32([[1,0,tx],[0,1,ty]])


tp.wait(27)
cv2.destroyAllWindows()